/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.reading.bank.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.zx.reading.bank.entity.TreadingBank;
import com.jeesite.modules.zx.reading.bank.dao.TreadingBankDao;

/**
 * 阅读题题库Service
 * @author zpp
 * @version 2020-03-27
 */
@Service
@Transactional(readOnly=true)
public class TreadingBankService extends CrudService<TreadingBankDao, TreadingBank> {
	
	/**
	 * 获取单条数据
	 * @param treadingBank
	 * @return
	 */
	@Override
	public TreadingBank get(TreadingBank treadingBank) {
		return super.get(treadingBank);
	}
	
	/**
	 * 查询分页数据
	 * @param treadingBank 查询条件
	 * @param treadingBank.page 分页对象
	 * @return
	 */
	@Override
	public Page<TreadingBank> findPage(TreadingBank treadingBank) {
		return super.findPage(treadingBank);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param treadingBank
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(TreadingBank treadingBank) {
		super.save(treadingBank);
	}
	
	/**
	 * 更新状态
	 * @param treadingBank
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(TreadingBank treadingBank) {
		super.updateStatus(treadingBank);
	}
	
	/**
	 * 删除数据
	 * @param treadingBank
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(TreadingBank treadingBank) {
		super.delete(treadingBank);
	}
	
}